package com.ruoyi;

import com.dtflys.forest.springboot.annotation.ForestScan;
import com.ruoyi.config.MinIOConfigProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.core.env.Environment;

/**
 * 启动程序
 *
 * @author liuliya
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan(basePackages = {"com.ruoyi.*.mapper.*"})
@ForestScan(basePackages = "com.ruoyi.webhs.http")
@EnableConfigurationProperties(MinIOConfigProperties.class)
public class RuoYiApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(RuoYiApplication.class);
        Environment env = app.run(args).getEnvironment();
        System.out.println("(♥◠‿◠)ﾉﾞ  河北省矿产资源监管平台后端启动成功   ლ(´ڡ`ლ)ﾞ, 端口：" + env.getProperty("server.port"));
    }
}
